package library.and.xps.com.step.util;

import android.util.Log;

public class FastClick {
    public static long currenttime = 0;
    public static long privoustime = 0;
    /**
     *@return true  如果两次调用小于一秒
     * */
    public static boolean isFastClick() {
        currenttime = System.currentTimeMillis();
        if(currenttime-privoustime<=1000){
            return true;
        }else{
            privoustime = currenttime;
            return false;
        }
    }
}
